import { onMounted, reactive } from "vue"

export const useLogin = () => { 

    const user=reactive({username:"admin",password:"888"});

    onMounted(() => {
        console.log("在自定义hook里mounted");
    })

    const login=()=>{ 
        console.log("登录");
        
        console.log(user.username,user.password);
    }

     return {user,login}

}